//
//  ReadListCell.m
//  Leisure
//
//  Created by Alex on 16/6/29.
//  Copyright © 2016年 蓝鸥科技有限公司西安分公司. All rights reserved.
//

#import "ReadListCell.h"


@interface ReadListModel()


@end


@implementation ReadListCell

// 重写父类的方法
- (void)setCellWithModel:(id)model {
    
    ReadListModel *readListModel = model;
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:readListModel.coverimg] placeholderImage:[UIImage imageNamed:@"1"]];
    self.content.text = readListModel.content;
    self.name.text = readListModel.title;
    
}

- (void)setCellWithCollecionModel:(CollectionModel *)model {
    
    [self.coverimg sd_setImageWithURL:[NSURL URLWithString:model.coverimg] placeholderImage:[UIImage imageNamed:@"1"]];
    self.content.text = model.title;
    self.name.text = model.name;
    
}

@end
